package com.ljx.itbbs.server.mall.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ljx.itbbs.server.mall.domain.entity.CouponEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CouponMapper extends BaseMapper<CouponEntity> {

    List<CouponEntity> getUserCouponListByUId(Long userId);

    CouponEntity getUserCoupon(@Param("userId") Long userId, @Param("couponId") Long couponId);
}